Skip to content

refactor: use github-sts for Slack config token rotation - #79

Merged
sds merged 2 commits into
mainfrom
sts-workflows
Aug 21, 2026
Merged

refactor: use github-sts for Slack config token rotation#79
sds merged 2 commits into
mainfrom
sts-workflows

Conversation

@sds

@sds sds commented Aug 21, 2026

Copy link
Copy Markdown
Member

Switches setup-slack-config-token from the SLACK_GH_TOKEN fine-grained PAT to a short-lived token minted through github-sts via tempoxyz/gh-actions/actions/github-sts, authorized by the slack-config trust policy added in #77.

  • The composite action now mints the GitHub token itself (only when rotation is actually needed, i.e. no access token was passed in), so the four calling workflows just drop the github-token input and gain id-token: write.
  • SLACK_GH_TOKEN plumbing is removed from pull_request.yml and the preview_deploy.yml workflow_call contract.
  • The minted token is scoped to this repo with secrets: write, and the STS action revokes it when the job completes.

After merge, the SLACK_GH_TOKEN repository secret can be deleted and the PAT revoked.

@sds sds closed this Aug 21, 2026
@sds
sds deployed to preview August 21, 2026 06:17 — with GitHub Actions Active
@sds sds reopened this Aug 21, 2026
@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest Tipbot preview deployment for 00eddcc

Name Status Preview Updated (UTC)
pr79 Shut Down Shut Down pr79.tip.bot Aug 21, 2026, 6:50 AM

@sds
sds deployed to preview August 21, 2026 06:28 — with GitHub Actions Active
sds added a commit that referenced this pull request Aug 21, 2026
#81)

Adds `repo:tempoxyz@211589300/tip.bot@1232143975:environment:production`
to the `slack-config` trust policy, the production counterpart to #80:
the `update_slack_app` job runs in `environment: production`, so its
OIDC subject is the environment form and the existing `refs/heads/main`
subject does not match it. Without this, the production Slack app update
would fail to mint once #79 lands.

Also rewrites the subject comment to reflect that all rotating jobs run
in environments; the ref/event subjects remain for any future job that
rotates without one.
@sds
sds deployed to preview August 21, 2026 06:45 — with GitHub Actions Active
@sds
sds merged commit e0a88f6 into main Aug 21, 2026
9 checks passed
@sds
sds deleted the sts-workflows branch August 21, 2026 06:49
@sds
sds deployed to preview August 21, 2026 06:49 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant